home *** CD-ROM | disk | FTP | other *** search
- /*
- MSScript.h
-
- Version 3.1
-
- Copyright © 1995 Apple Computer, Inc., all rights reserved.
-
- MenuScripter by Nigel Humphreys and Jon Lansdell
- AppleEvent to script extensions by Greg Sutton
- */
-
- #ifndef __MSSCRIPT__
- #define __MSSCRIPT__
-
- #include <Types.h>
-
- #include "MSGlobals.h"
-
- pascal OSErr InitEditorScripting(void);
-
- pascal OSErr SetOSAActiveProcedure(void);
-
- pascal OSErr CloseEditorScripting(void);
-
- pascal OSErr CompileDocument(DPtr theDoc);
-
- pascal OSErr ExecuteDocument(DPtr theDoc);
-
- pascal OSErr ScriptForMenuExists(short theMenu, short theItem, Boolean *exists);
-
- pascal OSErr ExecuteScriptForMenu(short theMenu, short theItem);
-
- pascal OSErr EditMenuScript(short theMenu, short theItem);
-
- pascal short GetScriptActiveItem(void);
-
- #endif